// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GeneratorRunTime : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GeneratorRunTime, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string GeneratorCode { get; set; }
        public string GensetNum { get; set; }
        public string DTUID { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string CompanyCode { get; set; }
        public string CompanyName { get; set; }
        public decimal? RunTime { get; set; }
        public DateTime? UpdateTime { get; set; }
        public decimal MaintenanceTime { get; set; }
        public string MaintenanceTimeRecord { get; set; }
    
        public void Configure(EntityTypeBuilder<GeneratorRunTime> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyName).HasMaxLength(200);

                entityBuilder.Property(e => e.DTUID).HasMaxLength(50);

                entityBuilder.Property(e => e.GeneratorCode).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.MaintenanceTime).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.MaintenanceTimeRecord).HasMaxLength(2000);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.RunTime).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.UpdateTime).HasColumnType("datetime");
        }

    }
}

